SdLicense2Rtf Example

InstallShield 2014 » InstallScript Language Reference

Project: This information applies to the following project types:

InstallScript
InstallScript MSI

/*--------------------------------------------------------------*\

*

* InstallShield Example Script

*

* Demonstrates the SdLicense2Rtf function.

*

* This script calls SdLicense2Rtf to display a license agreement

* and prompt the user to accept or reject that agreement.

*

* Note: The license agreement is read from an RTF file that

*       is stored at the location specified by the constant

*       LICENSE_PATH.  Before running this script, set that

*       constant so that it references an existing RTF file

*       on the target system.

*

\*--------------------------------------------------------------*/

 

 

 

#define LICENSE_PATH "License.rtf"

#define TITLE "SdLicense2Rtf Example"

 

#include "ifx.h"

 

function OnBegin()

begin

 

   // Disable the Back button in setup dialogs.

   Disable (BACKBUTTON);

 

 

   // Display the SdLicense2Rtf dialog.

   if (SdLicense2Rtf (TITLE, "", "", LICENSE_PATH, FALSE) = NEXT) then

      MessageBox ("Continue with the installation.", INFORMATION);

   endif;

 

end;